//
//  ViewController.m
//  LvBao
//
//  Created by 范琦 on 16/6/1.
//  Copyright © 2016年 范琦. All rights reserved.
//

#import "ViewController.h"
#import "YTKNetHandle.h"


@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    
    YTKNetHandle *api = [[YTKNetHandle alloc]initWithUrl:@"http://192.168.31.201:1690/holi/user/app/login.app?username=111&password=111" paramDic:@{@"username":@"111", @"password":@"1111"} RegisterApiMethod:RequestMethodGet];
    
    
    [api startWithCompletionBlockWithSuccess:^(YTKBaseRequest *request) {
        
        NSLog(@"%@", request.responseBody);
        
    } failure:^(YTKBaseRequest *request) {
        
    }];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
